
class AClass():
    def __init__(self):
        self.a = 1

    def _setup(self):
        print('AClass _setup')

    def clear(self):
        print('AClass clear')

    def __execute(self):
        print('AClass __execute')


class BClass(AClass):
    def __init__(self):
        self.b = 2
        super().__init__()

    def _setup(self):
        print('BClass _setup')

    def clear(self):
        print('BClass clear')


a = AClass()
a._setup()
a.clear()

b = BClass()
b._setup()
b.clear()


def change_list(mylist):
    return [4,5,6]

abc = [1,2,3]
abc = change_list(abc)
print(abc)

a = 2

b = map(lambda x: x+a, [1,2,3])
print(list(b))


c = 10
print([10//3 for i in range(3)])


class xa():
    def validate(self):
        print('xa validate')
        self._print_name()
    
    def _print_name(self):
        print('xa print')

class xb(xa):
    def _print_name(self):
        print('xb print')
    def validate(self):
        print('xb validate')

class xc(xb):
    def validate(self):
        print('xc validate')
        super().validate()


xcc = xc()
xcc.validate()

def listFunc(argv):
    for value in argv:
        print(value)

sc = [1,2,3,34]
listFunc(sc)


def add_value(input_list):
    input_list.append(2)

ee = [1,2,3]
add_value(ee)
print(ee)



class testClass:
    def printvalue(self, value):
        return False, value

funcs = [testClass(), testClass(), testClass()]
results = [1,2,3]
aaaa = [func.printvalue(result) for func in funcs for result in results]
print(aaaa)